@echo off
REM Build onnxruntime library for Windows

set ONNXRUNTIME_DIR=onnxruntime

echo Starting build of onnxruntime library for Windows...

REM Create build directory
if not exist %ONNXRUNTIME_DIR%\build mkdir %ONNXRUNTIME_DIR%\build
cd %ONNXRUNTIME_DIR%\build

echo Configuring build with CMake...
cmake ..

if %ERRORLEVEL% EQU 0 (
    echo.
    echo Build configuration completed successfully!
    echo Please use Visual Studio to open %ONNXRUNTIME_DIR%\build\FunASROnnx.sln and build the project
    echo Build artifacts will be located at: %ONNXRUNTIME_DIR%\build\bin
) else (
    echo.
    echo Build configuration failed!
    exit /b 1
)